﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;

//using Amazon.S3;
//using Amazon.S3.Model;
//using UnityEngine;

//namespace Jinndev
//{

//    public class JdOSS
//    {
//        // https://docs.jdcloud.com/cn/object-storage-service/sdk-net

//        const string accessKeyId = "48F719D79DF7226E671AB252D76EE200";
//        const string accessKeySecret = "2DD3969C5D6D0ED718D0B185B0020181";
//        const string endpoint = "https://s3.cn-north-1.jdcloud-oss.com";
//        const string bucketName = "gamecat.s3.cn-north-1.jdcloud-oss.com";

//        private static IAmazonS3 s3Client;

//        public static async void Test()
//        {
//            var s3ClientConfig = new AmazonS3Config
//            {
//                ServiceURL = endpoint,
//                SignatureVersion = "4",
//                UseHttp = true,
//            };
//            s3Client = new AmazonS3Client(accessKeyId, accessKeySecret, s3ClientConfig);

//            ListObjectsRequest listObjectsRequest = new ListObjectsRequest()
//            {
//                BucketName = bucketName
//            };

//            var response = await s3Client.ListObjectsAsync(listObjectsRequest);

//            foreach(var obj in response.S3Objects)
//            {
//                Debug.Log(obj.Key);
//            }
//        }

//    }

//}
